// ==========================================================================
// GFast自动生成service操作代码。
// 生成日期：2024-01-04 11:04:57
// 生成路径: internal/app/flow/service/flow_form.go
// 生成人：gfast
// desc:流程表单
// company:云南奇讯科技有限公司
// ==========================================================================

package service

import (
	"context"

	"github.com/tiger1103/gfast/v3/internal/app/flow/model"
)

type IFlowForm interface {
	List(ctx context.Context, req *model.FlowFormSearchReq) (res *model.FlowFormSearchRes, err error)
	GetById(ctx context.Context, Id uint64) (res *model.FlowFormInfoRes, err error)
	Add(ctx context.Context, req *model.FlowFormAddReq) (err error)
	Edit(ctx context.Context, req *model.FlowFormEditReq) (err error)
	Delete(ctx context.Context, Id []uint64) (err error)
}

var localFlowForm IFlowForm

func FlowForm() IFlowForm {
	if localFlowForm == nil {
		panic("implement not found for interface IFlowForm, forgot register?")
	}
	return localFlowForm
}

func RegisterFlowForm(i IFlowForm) {
	localFlowForm = i
}
